//
//  ONUtility.h
//  OrderNow
//
//  Created by Chickennohair on 2014/03/15.
//  Copyright (c) 2014年 Familly. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@interface ONUtility : NSObject
+(CGFloat) calculateDistanceBetweenLocation:(CLLocationCoordinate2D )p1 withLocation:(CLLocationCoordinate2D )p2 ;

+(void) calculateDistanceBetweenLocation:(CLLocationCoordinate2D )p1 withLocation:(CLLocationCoordinate2D )p2 completion:(void(^)(CGFloat distance, NSError *error))callback;
+(BOOL) validateName:(NSString*) name;

+(NSString*)formatMoney:(CGFloat) money;

+(void)handleErrorWithResponse:(NSData*)response;
@end
